import secrets

class Config:
    SQLALCHEMY_POOL_PRE_PING = True
    SQLALCHEMY_POOL_SIZE = 100
    SQLALCHEMY_MAX_OVERFLOW = 50
    SQLALCHEMY_POOL_TIMEOUT = 3600
    SQLALCHEMY_POOL_RECYCLE = 3600
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://kdcms_st:kdcms_st@localhost/kdcms_st'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SECRET_KEY = secrets.token_hex(16)  # 生成一个32字符长的16进制随机密钥

